﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PaperDetailAutoEdit.ascx.cs" Inherits="ExaminationSys.View.Paper.PaperDetailAutoEdit" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script type="text/javascript" language="javascript">
    var setID = function (param) {
        try {

            var hidden = document.getElementById('<%=IDHidden.ClientID %>');
            hidden.value = param;
        } catch (e) {
            alert(e);
        }
    };

    var setPapertTitle = function (param) {
        try {

            var hidden = document.getElementById('<%=lblPaperTitle.ClientID %>');
            hidden.value = param;
        } catch (e) {
            alert(e);
        }
    };

    var setHidPaperID = function (param) {
        try {

            var hidden = document.getElementById('<%=HidPaperID.ClientID %>');
            hidden.value = param;
        } catch (e) {
            alert(e);
        }
    };
    
</script>
<input type="hidden" id="IDHidden" runat="server" />
<input type="hidden" id="HidPaperID" runat="server" />
<ext:Window ID="PaperDetailAutoEditWindow" runat="server" Icon="Group" Title="试卷列表-添加动态试卷" Width="500"
    Height="486" AutoShow="false" Modal="true" Hidden="true" Layout="Fit">
    <Items>
        <ext:FormPanel ID="PaperDetailAutoEditPanel" runat="server" Icon="ChartOrganisation"
            DefaultAnchor="95%" Padding="5" BodyPadding="10">
            <Items>
                <ext:Label ID="lblPaperTitle" runat="server" Text="试卷:" ></ext:Label>
                <ext:TextField ID="Title" AllowBlank="false" runat="server" FieldLabel="标题" />
                <ext:ComboBox ID="SectionID" AllowBlank="false" runat="server" FieldLabel="栏目" EmptyText="请选择栏目..."></ext:ComboBox>
                <ext:ComboBox ID="Level" AllowBlank="false" runat="server" FieldLabel="阶段" EmptyText="请选择阶段..."  AnchorHorizontal="45%">
                    <Items>
                        <ext:ListItem Text="高级" Value="1" />  
                        <ext:ListItem Text="中级" Value="2" />
                        <ext:ListItem Text="初级" Value="3" />
                    </Items>
                </ext:ComboBox>
                 <ext:ComboBox ID="Degree" AllowBlank="false" runat="server" FieldLabel="难度" EmptyText="请选择难度..."  AnchorHorizontal="45%">
                    <Items>
                        <ext:ListItem Text="高" Value="1" />  
                        <ext:ListItem Text="中" Value="2" />
                        <ext:ListItem Text="低" Value="3" />
                    </Items>
                </ext:ComboBox>
                <ext:TextField ID="SectionKeyWrods" AllowBlank="true" runat="server" FieldLabel="知识点" />
                <ext:TextField ID="KeyWrods" AllowBlank="true" runat="server" FieldLabel="关键字" />
                <ext:NumberField ID="ExerciseCount" runat="server" FieldLabel="题目数"   AnchorHorizontal="45%" />
                <ext:NumberField ID="OrderIndex" runat="server" FieldLabel="排序"   AnchorHorizontal="45%" />
      
             
              
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SaveButton" runat="server" Text="保存并继续" Icon="BulletGo">
            <DirectEvents>
                <Click OnEvent="SavePaperDetailAuto" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');" Success="#{StorePaperDetailAuto}.reload();">
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="返回" Icon="Cancel">
            <Listeners>
                <Click Handler="#{PaperDetailAutoEditWindow}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
